package demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import demo.aspect.MethodCacheAspect;
import demo.aspect.MongoTemplateFilterAspect;
import demo.aspect.MongoTemplateTraceAspect;

/**
 * 切面配置
 * 
 * @author hanjy
 *
 */
@Configuration
public class AspectConfig {

    @Bean
    protected MongoTemplateTraceAspect mongoTemplateTraceAspect() {
        return new MongoTemplateTraceAspect();
    }

    @Bean
    protected MethodCacheAspect methodCacheAspect() {
        return new MethodCacheAspect();
    }

    @Bean
    protected MongoTemplateFilterAspect mongoTemplateFilterAspect() {
        return new MongoTemplateFilterAspect();
    }
}